<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
<style type="text/css">
table.listOutput {
	width: 100%;
	margin-top:30px;
	border-collapse: collapse;
}

table.listOutput tr td {
	border-top: 1px solid #ddd;
	border-bottom: 1px solid #ddd;
	height: 40px;
	line-height: 40px;
}
</style>
<table class="cntable table table-bordered dataTable table-reportCataLog">
	<thead>
		<tr>
			<th style="width:40px;text-align: center;"></th>
			<th>名称</th>

			<th style="width: 100px; text-align: center;">
				创建者</th>
			<th  style="width: 150px; text-align: center;">
				创建时间</th>
		</tr>
	</thead>
	<tbody>
		
		<c:forEach items="${reportCataLogs}" var="reportCataLog">
			<tr class="file-container"
				data-showName="${reportCataLog.reportName}"
				data-id="${reportCataLog.id}" data-toggle="context"
				data-target=".file-context-menu">
				<td style="width: 40px; text-align: center;"><i
					class="icon icon-file-empty2"
					style="font-size: 20px; color: #9d4A0e;"></i></td>
				<td class="display-name-file"><a onclick="startDownload('${reportCataLog.UUID }')" target="_blank"> <span>${reportCataLog.fileName}</span>
				</a></td>

				<td class="width:150px:text-align:center"><span>${reportCataLog.createUserName }</span>
				<td style="width: 150px; text-align: center;"><fmt:formatDate
						value="${reportCataLog.createDate}" type="date"
						dateStyle="default" pattern="yyyy-MM-dd HH:mm:ss" /></td>
			</tr>
		</c:forEach>
	</tbody>
</table>
<<script type="text/javascript">
function startDownload(ossId){
	var url=$.getFileUrl(ossId);
	if($("#ossCommonDownload").length>0){
		$("#ossCommonDownload").attr("href",url);
	}else{
		var downloadHtml="<a id='ossCommonDownload' href='"+url+"' style='display:none;' target='_blank' />";
		$("body").append(downloadHtml);
	}
	$("#ossCommonDownload")[0].click();	
}
</script>

<%@ include
	file="/WEB-INF/views/shared/base/scripts/limitless/default/extensions/contextmenu.jsp"%>